﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.OrderFreightFormulaRecord;
using BCDto.TMS.OrderFreightFormulaRecord;
using BCEntity.TMS.OrderFreightFormulaRecord;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.OrderFreightFormulaRecord
{
	/// <summary>
	/// 订单运费公式记录
	/// </summary>
	public interface IOrderFreightFormulaRecordService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="orderFreightFormulaRecordId">订单运费公式记录Id</param>
		bool Exists(long orderFreightFormulaRecordId);
		/// <summary>
		/// 添加订单运费公式记录
		/// </summary>
		/// <param name="requestDto">订单运费公式记录信息</param>
		OrderFreightFormulaRecordDto Add(OrderFreightFormulaRecordRequestDto requestDto);
		/// <summary>
		/// 更新订单运费公式记录
		/// </summary>
		/// <param name="putDto">订单运费公式记录信息</param>
		OrderFreightFormulaRecordDto Update(OrderFreightFormulaRecordPutDto putDto);
		/// <summary>
		/// 删除订单运费公式记录
		/// </summary>
		/// <param name="orderFreightFormulaRecordId">订单运费公式记录Id</param>
		bool Delete(long orderFreightFormulaRecordId);
		/// <summary>
		/// 获取订单运费公式记录
		/// </summary>
		/// <param name="orderFreightFormulaRecordId">订单运费公式记录Id</param>
		OrderFreightFormulaRecordDto Get(long orderFreightFormulaRecordId);
		/// <summary>
		/// 获取订单运费公式记录列表
		/// </summary>
		/// <param name="orderId">订单Id</param>
		IEnumerable<OrderFreightFormulaRecordDto> GetList(long orderId);
		/// <summary>
		/// 获取订单运费公式记录分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">订单运费公式记录每页数据条数</param>
		PageableList<OrderFreightFormulaRecordDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}